﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

using CodeSuperior.Lucifure;

namespace Lucifure.Stash.Test.Exceptions
{
	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public 
	class PartitionKeyNotDefined
	{
		public
		string									RowKey { get; set; }
	}	

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public 
	class RowKeyNotDefined
	{
		public
		string									PartitionKey { get; set; }
	}	

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public 
	class KeyNotDefined
	{
	}	

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public 
	partial 
	class TestForExceptions 
	{
		[TestMethod]
		public 
		void 
		ExceptionKeyNotDefined() 
		{
			Common<PartitionKeyNotDefined>(StashError.KeyNotDefined);

			Common<RowKeyNotDefined>(StashError.KeyNotDefined);

			Common<KeyNotDefined>(
				new [] { 
					StashError.KeyNotDefined,
					StashError.KeyNotDefined } );
		}
	}

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------
}
